package tk.mybatis.springboot.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tk.mybatis.springboot.mapper.SpringerMapper;
import tk.mybatis.springboot.spider.entity.LiteratureEntity;

import java.util.List;

/**
 * Created by xlp on 2017/3/13.
 */
@Service
public class SpringerService {
    @Autowired
    private SpringerMapper springerMapper;

    public Boolean save(LiteratureEntity literatureEntity) {
        return springerMapper.insertTo(literatureEntity);
    }

    public List<LiteratureEntity> getErrorLink() {
        return springerMapper.searchErrorLink();
    }

    public Boolean delete(LiteratureEntity literatureEntity) {
        return springerMapper.deleteErrorLink(literatureEntity);
    }

}
